/* TanDN
* function: check and uncheck checkbox
* */
$(document).ready(function() {
   totalChecked = $('#table_vg_business_category tbody tr').size();
   $('.sf_admin_batch_checkbox').change(function() {
      checked = $('input:checkbox:checked.sf_admin_batch_checkbox').length;
      if (checked == totalChecked)
        $('#sf_admin_list_batch_checkbox').prop('checked',true);
      else
        $('#sf_admin_list_batch_checkbox').prop('checked',false);

   });
   $('.sf_admin_batch_checkbox').each(function() {
      count += 1;
   });

});